﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppCode/MasterPages/Employee.master" AutoEventWireup="true" CodeFile="PolicyDetails.aspx.cs" Inherits="AppCode_Employee_PolicyDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 900px; margin: 0 auto; margin-bottom:20px">
        <div style="text-align:center">
            <asp:TextBox ID="txtSearch" runat="server" Height="26px" Width="187px"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="Search" Font-Bold="True" Height="26px" OnClick="Button1_Click" Width="62px" />
        </div>
        <p style="font-size: 19px; font-weight: bold; margin-top: 40px; margin-bottom: 10px;text-align:center">Policy Detail</p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="900px" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical" RowStyle-HorizontalAlign="Center">
            <AlternatingRowStyle BackColor="#CCCCCC" />
            <Columns>
                <asp:BoundField HeaderText="PolicyId" DataField="PolicyId" />
                <asp:BoundField HeaderText="PolicyName" DataField="PolicyName" />
                <asp:BoundField HeaderText="PolicyDesc" DataField="PolicyDesc" />
                <asp:BoundField HeaderText="Amount" DataField="Amount" />
                <asp:BoundField HeaderText="Emi" DataField="Emi" />
                <asp:BoundField HeaderText="CompanyName" DataField="CompanyName" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href='CompanyDetails.aspx?companyId=<%#Eval("CompanyId")%>'>CompanyDetail</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href='OrderInsurance.aspx?policyId=<%#Eval("policyId")%>'>Apply</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>

            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />

<RowStyle HorizontalAlign="Center"></RowStyle>
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />

        </asp:GridView>
    </div>
</asp:Content>

